package com.greejoy.score.utils;

public class TimeUtils {

    public static String buildTimeStr(Double time){
        int m = time.intValue() / 60;
        int s = time.intValue() % 60;
        int ms = (int)((time - m * 60 - s) * 10);
        String mm = m < 10 ? "0" + m : "" + m;
        String ss = s < 10 ? "0" + s : "" + s;
        return mm + ":" + ss + "." + ms;
    }

}
